# 定义一个有数据的元组
tuple1 = (1, 2, 3, 4, 5)  # 推荐
# 简写
tuple2 = 1, 2, 3, 4, 5,
# print(type(tuple1))
# print(type(tuple2))
# 定义一个空元组 必须后面跟上括号
tuple3 = ()  # 简写空元组
tuple4 = tuple()  # 空元组
print(type(tuple3))
print(type(tuple4))
tuple5 = (1, 2, 11, 3 > 3, 1 + 3)  # 代码正确
# 我们元组中有比较和 四则运算，自动给出结果
print(tuple5)
#拆包  跟列表的拆包一样
a,b,c=tuple5

